optical diagnosis